package com.ktjy.market.mapper;

import com.ktjy.market.pojo.BackendUser;
import com.ktjy.market.pojo.DevUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 秦羽墨
* @description 针对表【dev_user】的数据库操作Mapper
* @createDate 2024-05-13 16:53:11
* @Entity com.ktjy.market.pojo.DevUser
*/
@Mapper
public interface DevUserMapper extends BaseMapper<DevUser> {


    @Select("select * from dev_user where devCode=#{user} and devPassword=#{password}")
    DevUser login(@Param("user") String dev, @Param("password") String password);


    @Select("select count(*) from dev_user where devCode= #{user}")
    int getUserCount(@Param("user") String user);

}




